﻿<%@ Page Title="" Language="C#" MasterPageFile="~/staffpages/MasterPageStaff.master" AutoEventWireup="true" CodeFile="ManageSurvey.aspx.cs" Inherits="staffpages_ManageSurvey" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <h3 style="text-align: center">Manage Survey</h3>
    <br />
    <table width="100%">
        <tr>
            <td style="width: 100px; text-align: right;">ID question:</td>
            <td style="width: 210px">
                <asp:Label ID="lblID" runat="server"></asp:Label>
            </td>
            <td></td>
        </tr>
        <tr>
            <td style="width: 100px; text-align: right">Question:</td>
            <td style="width: 210px">
                <asp:TextBox ID="txtQuestion" runat="server" TextMode="MultiLine" Width="200px"></asp:TextBox>
            </td>
            <td>
                <asp:Label ID="lblQues" runat="server" CssClass="auto-style10"></asp:Label>

            </td>
        </tr>
        <tr>
            <td style="width: 100px; text-align: right">Answer 1:</td>
            <td style="width: 210px">
                <asp:TextBox ID="txtAns1" runat="server" Width="200px"></asp:TextBox>
            </td>
            <td>
                <asp:Label ID="lblAns1" runat="server" CssClass="auto-style10"></asp:Label>
            </td>
        </tr>
        <tr>
            <td style="width: 100px; text-align: right">Answer 2:</td>
            <td style="width: 210px">
                <asp:TextBox ID="txtAns2" runat="server" Width="200px"></asp:TextBox>
            </td>
            <td>
                <asp:Label ID="lblAns2" runat="server" CssClass="auto-style10"></asp:Label>
            </td>
        </tr>
        <tr>
            <td style="width: 100px; text-align: right">Answer 3:</td>
            <td style="width: 210px">
                <asp:TextBox ID="txtAns3" runat="server" Width="200px"></asp:TextBox>
            </td>
            <td>
                <asp:Label ID="lblAns3" runat="server" CssClass="auto-style10"></asp:Label>
            </td>
        </tr>
        <tr>
            <td style="width: 100px; text-align: right">Answer 4:</td>
            <td style="width: 210px">
                <asp:TextBox ID="txtAns4" runat="server" Width="200px"></asp:TextBox>
            </td>
            <td>
                <asp:Label ID="lblAns4" runat="server" CssClass="auto-style10"></asp:Label>
            </td>
        </tr>
        <tr>
            <td colspan="3"><br /></td>
        </tr>
        <tr>
            <td style="width: 100px"></td>
            <td style="width: 210px">

                <asp:Button ID="btnAdd" runat="server" Text="Add question" OnClick="btnAdd_Click" />                
                <asp:Button ID="btnEdit" runat="server" Text="Edit" OnClick="btnEdit_Click" />
                <asp:Button ID="btnReset" runat="server" Text="Reset" OnClick="btnReset_Click" />
            </td>
            <td></td>
        </tr>
        <tr>
            <td style="width: 100px"></td>
            <td style="width: 210px"></td>
            <td></td>
        </tr>
    </table>

    <asp:GridView ID="GridView1" runat="server" Width="100%" OnSelectedIndexChanged="GridView1_SelectedIndexChanged" OnRowCreated="GridView1_RowCreated" OnRowDeleting="GridView1_RowDeleting">
        <Columns>
            <asp:ButtonField CommandName="Select" HeaderText="Select" ShowHeader="True" Text="Select" />
            <asp:ButtonField CommandName="Delete" HeaderText="Delete" ShowHeader="True" Text="Delete" />
        </Columns>
    </asp:GridView>

</asp:Content>

